﻿using RpcStore.DAL;
using RpcStore.Model.DB;

namespace RpcStore.Collect.lmpl
{
    internal class ErrorLangMsgCollect : IErrorLangMsgCollect
    {
        private IErrorLangMsgDAL _BasicDAL;

        public ErrorLangMsgCollect(IErrorLangMsgDAL basicDAL)
        {
            _BasicDAL = basicDAL;
        }

        public ErrorLangMsgModel[] GetErrorMsg(long[] errorId)
        {
            return this._BasicDAL.GetErrorMsg(errorId);
        }
        public string GetErrorMsgText(long errorId, string lang)
        {
            return this._BasicDAL.GetErrorMsgText(errorId, lang);
        }
        public ErrorLangMsgModel GetErrorMsg(long errorId, string lang)
        {
            return this._BasicDAL.GetErrorMsg(errorId, lang);
        }
        public Dictionary<long, string> GetErrorDic(long[] errorId, string lang)
        {
            return this._BasicDAL.GetErrorDic(errorId, lang);
        }
    }
}
